package net.ericaro.neojavagen.classes;

/**
 * <b>EnumBody</b> ::= "{" <{@link net .ericaro .neojavagen .classes .EnumConstants EnumConstants}>? ","? <
 * {@link net .ericaro .neojavagen .classes .EnumBodyDeclarations EnumBodyDeclarations}>? "}"
 * 
 * @author eric@ericaro.net
 */
public class EnumBody extends net.ericaro.neojavagen.JavaPartComposition {
	private boolean Comma;

	private net.ericaro.neojavagen.classes.EnumBodyDeclarations enumBodyDeclarations;

	private net.ericaro.neojavagen.classes.EnumConstants enumConstants;

	public EnumBody() {
		this.enumConstants = null;
		this.Comma = false;
		this.enumBodyDeclarations = null;
	}

	public EnumBody(net.ericaro.neojavagen.classes.EnumConstants enumConstants, boolean Comma, net.ericaro.neojavagen.classes.EnumBodyDeclarations enumBodyDeclarations) {
		super();
		this.enumConstants = enumConstants;
		this.Comma = Comma;
		this.enumBodyDeclarations = enumBodyDeclarations;
	}

	public boolean getComma() {
		return Comma;
	}

	public net.ericaro.neojavagen.classes.EnumBodyDeclarations getEnumBodyDeclarations() {
		return enumBodyDeclarations;
	}

	public net.ericaro.neojavagen.classes.EnumConstants getEnumConstants() {
		return enumConstants;
	}

	public void setComma(boolean Comma) {
		this.Comma = Comma;
	}

	public void setEnumBodyDeclarations(net.ericaro.neojavagen.classes.EnumBodyDeclarations enumBodyDeclarations) {
		this.enumBodyDeclarations = enumBodyDeclarations;
	}

	public void setEnumConstants(net.ericaro.neojavagen.classes.EnumConstants enumConstants) {
		this.enumConstants = enumConstants;
	}

	@Override
	public java.lang.String toString() {
		return print("{", enumConstants, Comma ? "," : null, enumBodyDeclarations, "}");
	}
}
